package com.haixiaoke.flat.lock.controller;

import java.util.List;

import com.haixiaoke.saas.common.core.domain.AjaxResult;
import com.haixiaoke.saas.lock.domain.Model;
import com.haixiaoke.saas.lock.service.IModelService;
import com.haixiaoke.saas.system.BaseController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 型号Controller
 *
 * @author panda
 * @date 2025-04-12
 */
@RestController
@RequestMapping("/front/flat/lock/model")
public class FlatModelController extends BaseController {
    @Autowired
    private IModelService modelService;

    /**
     * 查询型号列表
     */
    @GetMapping("/list")
    public AjaxResult list(Model model) {
        List<Model> list = modelService.selectModelList(model);
        return success(list);
    }
}
